Package-level declarations

Types

Link copied to clipboard

Pairs an Apple AppAttest assertion with the referenced clientData value

Link copied to clipboard

Provides additional details on why an attestation attempt failed, indicating which platform was being attested. Although many reasons exist, why an attestation may fail, these can be put into two categories:

Link copied to clipboard
data class AttestationObject(val fmt: String, val attStmt: AttestationObject.AttestationStatement, val authData: ByteArray)
Link copied to clipboard
sealed class AttestationResult

Attestation result class. Successful results contain attested data. Typically contained within a KeyAttestation object.

Link copied to clipboard
abstract class AttestationService
Link copied to clipboard
class DefaultAttestationService(androidAttestationConfiguration: AndroidAttestationConfiguration, iosAttestationConfiguration: IOSAttestationConfiguration, clock: Clock = Clock.System, verificationTimeOffset: Duration = Duration.ZERO) : AttestationService

Default, functional Android Key Attestation and Apple App Attestation in all its glory.

Link copied to clipboard
data class IOSAttestationConfiguration @JvmOverloads constructor(val applications: List<IOSAttestationConfiguration.AppData>, val iosVersion: String? = null)

Configuration class for Apple App Attestation

Link copied to clipboard
data class KeyAttestation<T : PublicKey>

Result type returned by AttestationService.verifyKeyAttestation. attestedPublicKey contains attested public key if attestation was successful (null otherwise) details contains the detailed attestation result (see AttestationResult for more details)

Link copied to clipboard

NOOP attestation service. Useful during unit tests for disabling attestation integrated into service endpoints. Simply forwards inputs but performs no attestation whatsoever.

Link copied to clipboard

Functions

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun Clock.toKotlinClock(): Clock